Skip to content

Expose one-pass labelled choice enumeration - #27

Merged
trissim merged 2 commits into
mainfrom
hotfix/p181-choice-pairs
Nov 12, 2026
Merged

trissim merged 2 commits into
mainfrom
hotfix/p181-choice-pairs

Conversation

@trissim

@trissim trissim commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Enumerate labels and values together

P181 introduced an N-squared dropdown path: ChoicesEditor asked for every label separately, and AdvertisedChoices rebuilt/scanned the whole advertisement for each label.

AnnotationChoices now supplies a one-pass labelled_choices boundary for generic consumers. LabelledChoices supplies inherited value/label operations for sources that already own paired data; Toad's advertisement metadata implements only that original pair enumeration. The shared editor consumes the pairs directly, with no second registry or cache. Reverse-label decoding also enumerates once.

Native application and source review; one direct SDK-advertisement check covers pair order, values, labels and reverse lookup. No suite or profiling. Paired python-introspect and Toad source changes ship together through the ordinary tracked-main installer.

Copilot AI balanced review requested due to automatic review settings November 12, 2026 21:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@trissim
trissim merged commit adc02dc into main Nov 12, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants